package org.eminem.spring.cloud.finchley.service;

import org.eminem.spring.cloud.finchley.model.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient(name = "ch4-6-provider")
public interface UserService {

    @GetMapping(value = "/user/add")
    public String addUser(User user);

    @PostMapping(value = "/user/update")
    public String updateUser(@RequestBody User user);

}
